package com.xydtech.workflow.domain;

import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 流程节点跳过条件配置对象 wfl_stepskip
 *
 * @author JHON
 * @date 2021-06-02
 */
public class WflStepskip extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 条件编号 */
    private Long conditionId;

    /** 流程版本号 */
    @Excel(name = "流程版本号")
    private Long versionId;

    /** 流程节点编号 */
    @Excel(name = "流程节点编号")
    private Long stepId;

    /** 条件说明 */
    @Excel(name = "条件说明")
    private String conditionDesc;

    /** 取值SQL */
    @Excel(name = "取值SQL")
    private String valSql;

    /** 比较类型            1-等于            2-大于            3-小于            4-不等于            5-大于等于            6-小于等于 */
    @Excel(name = "比较类型            1-等于            2-大于            3-小于            4-不等于            5-大于等于            6-小于等于")
    private String compareType;

    /** 比较值 */
    @Excel(name = "比较值")
    private String compareVal;

    /** 比较值类型            1-字符            2-数字 */
    @Excel(name = "比较值类型            1-字符            2-数字")
    private String compareValType;

    /** 复制的版本号 */
    private Long copyVersionId;

    public Long getCopyVersionId() {
        return copyVersionId;
    }

    public void setCopyVersionId(Long copyVersionId) {
        this.copyVersionId = copyVersionId;
    }

    public void setConditionId(Long conditionId) {
        this.conditionId = conditionId;
    }

    public Long getConditionId() {
        return conditionId;
    }

    public void setVersionId(Long versionId) {
        this.versionId = versionId;
    }

    public Long getVersionId() {
        return versionId;
    }

    public void setStepId(Long stepId) {
        this.stepId = stepId;
    }

    public Long getStepId() {
        return stepId;
    }

    public void setConditionDesc(String conditionDesc) {
        this.conditionDesc = conditionDesc;
    }

    public String getConditionDesc() {
        return conditionDesc;
    }

    public void setValSql(String valSql) {
        this.valSql = valSql;
    }

    public String getValSql() {
        return valSql;
    }

    public void setCompareType(String compareType) {
        this.compareType = compareType;
    }

    public String getCompareType() {
        return compareType;
    }

    public void setCompareVal(String compareVal) {
        this.compareVal = compareVal;
    }

    public String getCompareVal() {
        return compareVal;
    }

    public void setCompareValType(String compareValType) {
        this.compareValType = compareValType;
    }

    public String getCompareValType() {
        return compareValType;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("conditionId", getConditionId())
                .append("versionId", getVersionId())
                .append("stepId", getStepId())
                .append("conditionDesc", getConditionDesc())
                .append("valSql", getValSql())
                .append("compareType", getCompareType())
                .append("compareVal", getCompareVal())
                .append("compareValType", getCompareValType())
                .toString();
    }
}
